<!-- Main content -->
<div class="wrapper">
	<div class="fluid">
		<div class="widget grid12" style="margin:0">
			<div class="whead">
				<h6>修改密码</h6>
				<div class="clear"></div>
			</div>
			
			<form id="admin_form" action="<?php echo BASE_URL;?>admin/editpass/admin_id/<?php echo $admin['admin_id'];?>" method="post">
			<div class="formRow">
				<div class="grid3">
					<label>用户名 :</label> 
					<?php echo CHtml::encode($admin['admin_name']);?>
				</div>
				
				<div class="clear"></div>
			</div>
			<div class="formRow">
				<div class="grid3">
					<label>密码 :</label>
					<input type="password" id="admin_pass" name="admin_pass" class="validate[required]" />
				</div>
				<div class="clear"></div>
			</div>
			<div class="formRow">
				<div class="grid3">
					<label>确认密码 :</label>
					<input type="password" id="confirm_pass" name="confirm_pass" class="validate[required,equals[admin_pass]]" />
				</div>
				<div class="clear"></div>
			</div>
			
			<div class="formRow">
				<input type="submit" value="保存" class="buttonL bBlue formSubmit" />
				<div class="clear"></div>
			</div>
			</form>
		</div>
	</div>
</div>

<?php $this->util->js(array(
	'js/plugins/forms/jquery.validationEngine-zh_CN.js',
	'js/plugins/forms/jquery.validationEngine.js'
));?>
<script type="text/javascript">
$(document).ready(function() {
	$("#admin_form").validationEngine({
		ajaxFormValidation: true,
		ajaxFormValidationMethod: 'post',
		onBeforeAjaxFormValidation: function() {
			
		},
		onAjaxFormComplete: function(status, obj, result) {
			<?php if (isset($no_forward)):?>
			alert(result.msg);
			$('#TheDialog').dialog('close');
			<?php else:?>
			show_msg(result);
			<?php endif;?>
		}
	});
});
</script>